1 School of Information Science and Technology, School of Artificial Intelligence, Beijing Forestry University, Beijing, China
2 Engineering Research Center for Forestry-Oriented Intelligent Information Processing, National Forestry and Grassland Administration, Beijing, China
TL;DRPropose CLOD-GFSS that integrates multi-scale contextual contrastive learning and hyperspherical orthogonal decoupling to address base-class feature drift and novel-class generalization in GFSS
CLOD-GFSS addresses two key limitations of existing GFSS methods: base-class feature degradation during novel-class fine-tuning, and intra-class variations among limited novel-class samples. The method proposes a hierarchical context-aware architecture (CIAM) for multi-scale contrastive learning, and an orthogonal decoupling module (ODM) that constrains feature space geometry via hyperspherical pseudo-target matching.
Existing GFSS two-stage training paradigms cause novel-class fine-tuning to disrupt base-class representations.
Combine contrastive learning with orthogonal decoupling: (1) Multi-scale anchor representations fuse global semantics with local details, optimized via Pixel-Anchor contrastive loss for intra-class compactness and inter-class separation; (2) Hyperspherical orthogonal decoupling generates uniformly distributed pseudo-targets and uses Hungarian algorithm for dynamic anchor-target matching to suppress feature drift.
A multi-scale context fusion mechanism that progressively integrates global semantic features with local detail features through weighted anchor updates. Pixel-Anchor (PA) contrastive loss enforces intra-class feature aggregation around class-specific anchors and inter-class separation across all encoding layers.
Generates uniformly distributed pseudo-target vectors on a d-dimensional hypersphere via Target Generation Loss, then uses Hungarian algorithm for online optimal matching between evolving category anchors and pseudo-targets. Pseudo-Target Matching Contrastive (PTMC) loss enforces feature space topology preservation.
Phase 1: fully supervised base-class learning with CIAM and ODM for discriminative feature space. Phase 2: novel-class update with frozen feature extractor to minimize base-class interference, while CIAM and ODM enhance novel-class feature discriminability through the new classifier.
Fig. 1 Contrastive learning and orthogonal decoupling-based generalized few-shot semantic segmentation model
The overall framework employs a two-phase training strategy: Phase 1 trains the full model (encoder + CIAM + ODM + classifier) on base classes with CE + PA + OrCo losses. Phase 2 freezes the encoder and fine-tunes CIAM, ODM, and a new classifier for novel classes, minimizing interference with base-class representations.
| Method | PASCAL-5i 1s Novel | PASCAL-5i 5s Novel | COCO-20i 1s Total | COCO-20i 5s Total | PASCAL-5i 5s Total |
|---|---|---|---|---|---|
| CAPL | 18.85 | 22.41 | 35.46 | 36.80 | 55.72 |
| PKL | 26.90 | 34.40 | 37.71 | 38.90 | 61.18 |
| DIaM | 35.11 | 55.31 | 39.02 | 38.55 | 66.97 |
| POP | 35.51 | 55.87 | 44.98 | 48.75 | 70.28 |
| BCM | 41.24 | 55.36 | 42.01 | 45.29 | 67.45 |
| CLOD-GFSS ours | 39.22 | 56.12 | 46.52 | 49.37 | 71.86 |
CLOD-GFSS achieves state-of-the-art on both benchmarks. On PASCAL-5i 1-shot, novel-class mIoU improves by +3.71% over POP. Ablation shows CIAM adds +0.74% Total mIoU, ODM further adds +3.82% Novel mIoU. Online matching outperforms random assignment by +1.2% Total mIoU. The method reduces boundary errors by 35.7% and improves small-object recall by 28.4% compared to POP.
Fig. 2 Multi-scale contextual perception with contrastive learning
Combining multi-scale contrastive learning with orthogonal feature space decoupling effectively addresses the dual challenge of base-class preservation and novel-class generalization in GFSS. The key insight is that constraining feature space geometry via orthogonal pseudo-targets on a hypersphere preserves base-class representations while enhancing novel-class discriminability.
@article{jiang2026clod,
title={Generalized few-shot semantic segmentation via contrastive learning and orthogonal decoupling},
author={Jiang, Lulu and Xia, Yaozheng and Wang, Shaorong},
journal={Multimedia Systems},
volume={32},
number={171},
publisher={Springer},
year={2026},
doi={10.1007/s00530-026-02227-8}
}